// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from "axios"
import ElementUI from 'element-ui'
import qs from "qs"
import 'element-ui/lib/theme-chalk/index.css'
import auth from "./auth/auth";
import boot from "../static/css/bootstrap.css"
import 'bootstrap/dist/css/bootstrap.min.css'
import $ from 'jquery'

window.jQuery = $
require('bootstrap')

//设置统一地址
axios.defaults.baseURL = 'http://127.0.0.1:8081'
Vue.prototype.$http = axios
Vue.config.productionTip = false
Vue.prototype.$auth = auth
Vue.use(ElementUI)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  qs,
  router,
  boot,
  components: {App},
  template: '<App/>'
})
